package com.server.server_a10.mapper;


import com.server.server_a10.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface LoginMapping {
    @Select("select * from user")
    List<User> selectAllUser();

    @Select("select name from user where id=#{id} and passwd=#{passwd}")
    String loginCheck(Long id,String passwd);
}
